document.querySelector('.inner-box span').onclick = () => {
    window.location.href = 'http://localhost:2022/登录.html';
}
let ipts = document.querySelectorAll('.block input');
console.log(ipts);
ipts[3].onclick = () => {
    if (
        ipts[0].value &&
        ipts[1].value &&
        ipts[2].value 
    ) {
        if (ipts[1].value == ipts[2].value) {
            axios.post('/zhuce', {
                name: ipts[0].value,
                pass: ipts[1].value
            }).then((res) => {
                console.log(res.data);
                alert(res.data.msg);
            })
        } else {
            alert('密码输入不一致！');
        }
    } else {
        alert('请填写所有信息！');
    }
}